package com.ham.mud.commands;

import com.ham.mud.ServerConnection;
import com.ham.mud.commands.socials.SocialCommand;

import java.util.List;

/**
 * Created by hlucas on Jul 1, 2011 at 5:23:28 PM
 */
public class SocialsCommand extends PlayerCommand {
    @Override
    public void execute(ServerConnection connection, String[] params) {
        List<String> socials = SocialCommand.socials;
        connection.printStart("Socials:");
        connection.println("----------------------------");
        for(String social : socials) {
            connection.println(social);
        }
        connection.println("----------------------------");
        connection.printEnd();
    }

    @Override
    protected String getCommandName() {
        return "socials";
    }
}
